﻿using System.Drawing;
using System.Windows.Forms;

namespace Marmat.Forms.Views.Grid
{
    public class MouseRowColEventArgs : RowColEventArgs
    {
        public MouseRowColEventArgs(BaseGrid gridControl, int rowHandle, Column column, Point location, MouseButtons button) : base(gridControl, rowHandle, column)
        {
            this.Button = button;
            this.Location = location;
        }

        public Point Location { get; private set; }

        /// <summary>
        /// 获取曾按下的是哪个鼠标按钮。
        /// </summary>
        /// <returns>System.Windows.Forms.MouseButtons 值之一。</returns>
        public MouseButtons Button { get; private set; }
    }
}